package io.mybatis.example.springboot.model;

import io.mybatis.provider.Entity;
import org.apache.ibatis.type.JdbcType;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * sys_notice - 通知公告表
 *
 * @author mkj
 */
@Getter
@Setter
@Entity.Table("sys_notice" remark = "通知公告表", autoResultMap = true)
public class SysNoticeDO {
  @Entity.Column(value = "notice_id", id = true, remark = "公告ID", updatable = false, insertable = false)
  private Integer noticeId;

  @Entity.Column(value = "notice_title", remark = "公告标题")
  private String noticeTitle;

  @Entity.Column(value = "notice_type", remark = "公告类型（1通知 2公告）")
  private String noticeType;

  @Entity.Column(value = "notice_content", remark = "公告内容")
  private byte[] noticeContent;

  @Entity.Column(value = "status", remark = "公告状态（0正常 1关闭）")
  private String status;

  @Entity.Column(value = "create_by", remark = "创建者")
  private String createBy;

  @Entity.Column(value = "create_time", remark = "创建时间", jdbcType = JdbcType.TIMESTAMP)
  private Date createTime;

  @Entity.Column(value = "update_by", remark = "更新者")
  private String updateBy;

  @Entity.Column(value = "update_time", remark = "更新时间", jdbcType = JdbcType.TIMESTAMP)
  private Date updateTime;

  @Entity.Column(value = "remark", remark = "备注")
  private String remark;

}
